package com.sky.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetmealDishMapper {
    /**
     * 根据菜品id查询套餐id
     * @param setmealId
     * @return
     */
    @Select("select dish_id from setmeal_dish where setmeal_id in (#{setmealId})")
    List<Long> getDishIdsBySetmealId(List<Long> setmealId);
}
